//
//  thireWeiXinDingDan.m
//  EJLX
//
//  Created by xufei on 15/12/3.
//  Copyright © 2015年 江苏一键联信息科技有限公司. All rights reserved.
//

#import "thireWeiXinDingDan.h"

@implementation thireWeiXinDingDan
+(id)userWithDictionary:(NSDictionary*)userDic
{
    return [[self alloc]initWithDictionary:userDic];
}
-(id)initWithDictionary:(NSDictionary*)userDic
{
    self=[super init];
    if (self)
    {
        _avatar=[userDic[@"avatar"]copy];
          _name=[userDic[@"name"]copy];
          _brand=[userDic[@"brand"]copy];
        _price=[userDic[@"price"]intValue];
        //_earning=[userDic[@"earning"]intValue];
        _quantity=[userDic[@"quantity"]intValue];
        
    }
    return self;
}

@end
